package com.JieCheng.dao.mapping;

import com.JieCheng.dao.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UserMapper {

    boolean addUser(@Param("name") String name,@Param("age") String age,@Param("sex") String sex,@Param("phone") String phone,
                    @Param("idcard") String idcard,@Param("mail") String mail,@Param("loginname") String loginname,
                    @Param("password") String password,@Param("roleid") int roleid,@Param("cartype") String cartype,
                    @Param("carexam") String carexam,@Param("subjectnum") int subjectnum,@Param("begintime") String begintime,
                    @Param("endtime") String endtime,@Param("createtime") String createtime,@Param("createuserid") int createuserid,
                    @Param("createroleid") int createroleid);

    User findByLoginName(@Param("loginName") String loginName);

    boolean modifyPassword(@Param("loginName") String loginName,@Param("newPassWord") String newPassWord);


}
